﻿using Entity;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace PartyWorkSupervise.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class peopleController : ControllerBase
    {
        private readonly AIYDbContext db;
        public peopleController(AIYDbContext context)
        {
            db = context;
        }
        [HttpGet]
        public object Get()
        {
            return db.interview.ToList();
        }
    }
}
